package com.daxia.ogmall.common;

public enum AdType {
	Index(0, "首页"), 
	Detail(1, "详情页"),
	Qingdan(2, "抢单页"),
	OrderDesigner(3, "预约详情页"),
	Category(4,"类别广告"),
	DesignModel(5,"样板方案"),
	CategoryUp(6,"类别横幅广告");

	private int value;
	private String remark;

	private AdType(int value, String remark) {
		this.value = value;
		this.remark = remark;
	}

	public int getValue() {
		return value;
	}

	public String getRemark() {
		return remark;
	}

	public static AdType getByValue(int value) {
		for (AdType o : AdType.values()) {
			if (o.getValue() == value) {
				return o;
			}
		}
		return null;
	}
}
